package com.example.certificate.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.certificate.dto.BasePageDTO;
import com.example.certificate.entity.ProductInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hao
 * @since 2022-03-10 12:42:47
 */
@Mapper
public interface ProductInfoMapper extends BaseMapper<ProductInfo> {

    /**
     * @Author Hao
     * @Description  分页多条件查询
     * @Date 2022/3/11
     * @Param [page, dto]
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.example.certificate.entity.ProductInfo>
     **/
    Page<ProductInfo> pagesel(Page<ProductInfo> page, BasePageDTO dto, @Param("userId") String userId);
}
